<template>
  <div>
    <el-carousel height="300px" class="lunbo">
      <el-carousel-item v-for="(item,index) in imgs" :key="index">
        <img :src="item" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
    name: "lunbo",
    data() {
      return{
        imgs:[
          "../images/pic1.jpg",
          "../images/列表/img_03.png",
          "../images/pic2.jpg",
          "../images/pic3.jpg"
        ]
      }
    }
}
</script>
<style scoped>
  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
  .lunbo{
      width: 100%;
  }
  .lunbo img{
      width: 100%;
      height: 100%;
  }
</style>